package com.github.kuzan7.webdemo.constants;

public enum BaseCodeEnum implements ErrorDescBase {
    OK("0", "success"),
    ERROR("-1", "服务器内部错误");

    private String code;
    private String message;

    private BaseCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}